<?php
	$html->addCrumb('Manager','/manager/');
	$html->addCrumb('Kontakt anlegen','/manager/contactPersons/add');
	
	echo  $this->element('tasks',array('target'=>'/manager/companies'));
?>

<div class="title">Kontakt anlegen</div>
<?php echo $this->element('flashMessage') ?>

<?php 
	echo $this->Form->create(null,array('class'=>'form','action'=>'add'));
	
	echo $this->Form->input('first_name',array('label'=>'Vorname:*'));
	echo $this->Form->input('family_name',array('label'=>'Nachname:*'));
	echo $this->Form->input('phone_number',array('label'=>'Telefon:*'));
	echo $this->Form->input('fax',array('label'=>'Fax:'));
	echo $this->Form->input('email',array('label'=>'Email:'));
	echo $this->Form->input('mobile_number',array('label'=>'Mobil:'));
	echo $this->Form->input('company_id',array('label'=>'Unternehmen:*'));
	echo $this->Form->input('free_text',array('label'=>'Notizen:','type'=>'textarea'));
	
	echo '<div class="form_div_buttons">';
	echo '<input type="submit" name="Anlegen" value="Anlegen">';
	echo '<a href="'.URL_PREFIX.$referer.'"><button>Abbrechen</button></a>';
	echo '</div>';
	
	echo $this->Form->end();
?>